<?php
/**
 * @filename DuckAdapter.php
 * @author LD King
 * @encoding UTF-8
 * @date 2008-9-5 | 下午08:38:04
 * @package Example
 * @subpackage 
 * @usage 鸭子打扮成火鸡
 * @note 
 * @copyright Copyright (c) 2007 - 2008 LD (http://mifunny.info)
 * @version $Id: $
 */
include_once '../01-duck.php';
include_once 'Turkey.php';

/**
 * 鸭子打扮成火鸡
 * 
 * 从一只鸭子到火鸡的改变
 */
class DuckAdapter implements Turkey {
	
	private $duck;
	
	public function __construct(Duck $duck) {
		$this->duck = $duck;
	}
	
	/**
	 * @see Turkey::fly()
	 *
	 */
	public function fly() {
		echo '<br />DuckAdapter::fly()';
	}
	
	/**
	 * @see Turkey::gobble()
	 *
	 */
	public function gobble() {
		echo '<br />Duckadapter::gobble()';
	}
}
?>